'use strict';

/**
 * session configs
 https://thinkjs.org/zh-cn/doc/2.2/adapter_session.html
 */
export default {
    type: 'file',
    name: 'thinkjs', //对应 cookie 的名称
    secret: '~0FM$(5S', //Session 对应的 cookie 是否需要加密
    timeout: 24 * 3600, //过期时间，默认为一天
    cookie: { // cookie options
        length: 32,
        httponly: true
    },
    adapter: {
        file: {
            path: think.RUNTIME_PATH + '/session',
        }
    }
};
